﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CaifenWeb.UtilityCls;
using CF.Member.DAL.Member;
using CF.Member.DAL.Badges;

namespace CaifenWeb.Areas.BgMgr.Controllers
{
    public class TesterController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Index(int uid)
        {
            FM_MemberDAL mdal = new FM_MemberDAL();
            mdal.MarkLoginInfo(uid, "");
            return View();
        }

        public ActionResult TestBadge()
        {
            return View();
        }

        [HttpPost]
        public ActionResult TestBadge(int bid)
        {
            IBadge ib = BadgeFactory.GetBadgeObject(bid);
            if (ib.CheckTakeCondition(1000000, bid))
            {
            }
            //IBadge badge = new NewHandBadge();
            //badge.ActivationBadge(bid, 1000000);
            //badge.UpdateBadgeLevel(bid, 1000000);
            //if (badge.CheckTakeCondition(1000000, bid))
            //{
            ////    badge.TakeBadge(bid, 1000000);
            //}
            return View();
        }
    }
}
